<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=
    , initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <div id="div1">我还没有被改过</div>

    <script>
        (function(){
            let div_1=document.getElementById("div1");
            div_1.innerHTML="我被改了";
        }());

    </script>
</body>
</html>